package com.cf.base.http.exception;

/**
 * httpCore 异常定义
 *
 * @author yangji
 */
public class CFBaseException extends RuntimeException {

    private int code;
    private String httpMessage;

    CFBaseException(Throwable cause, int code, String message) {
        super(cause);
        this.code = code;
        this.httpMessage = message;
    }

    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return httpMessage;
    }
}
